﻿﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<%@ include file="/commons/basejs.jsp"%>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="<%=request.getContextPath()%>/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/static/h-ui.admin/css/style.css" />
<title>人才培养方案</title>
<style type="text/css">
	input[type="radio"]
		width:16px;height:16px;
	}
	label{font-size:16px;}
</style>
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="header"></div>
<div class="loginWraper">
  <div id="" class="loginBox">
    <form class="form form-horizontal"  method="post" id="loginForm">
    <div class="form form-horizontal">
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-xs-8">
         	<input type="text" id="name" name="name" placeholder="用户名" class="input-text size-L"/>
        </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-8">
          <input type="password" id="password" name="password" class="input-text size-L"/>
        </div>
      </div>
      <div class="row cl">
          <label class="form-label col-xs-3"><i class="Hui-iconfont"></i></label>
          <div class="formControls col-xs-8">
              <div id="span_msg" style="color: red;">用户不存在或密码错误</div>
          </div>
	</div>

	<div class="row cl">
	<div class="formControls col-xs-8 col-xs-offset-3">
          <input style="margin-left:56px;" name="" type="button" id="btn" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
          <input style="margin-left:56px;" name="" type="reset" id="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
        </div>
      </div>
    </form>
  </div>
</div>
<div class="footer">&copy;人才培养方案毕业设计</div>
<script type="text/javascript" src="<%=request.getContextPath()%>/static/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript">
        $("#span_msg").hide();

        // $("#reset").click(function () {
        //     $("#span_msg").hide();
        // });

        $(".btn").click(function(){
            $.ajax({
                url:'<%=request.getContextPath()%>/login/login',
                data: $("#loginForm").serialize(),
                dataType: "json",
                type:'post',
                success: function(data){
                    if(data.success){
                        location.href = '<%=request.getContextPath()%>/manage/main/index';
                    }else{
                        $("#span_msg").show();
                    }
                }
            });
        });
	</script>
</body>
</html>